require.config({
               baseUrl:"../",
               paths:{
               bsl:'bsl',
               
               }
               });
require(['bsl'],function(bsl){
        document.addEventListener('deviceready', onDeviceready, false);
        function onDeviceready(){
        
        alert("share");
        function shareToSina() {
        alert("shareToSina");
        bsl.share.shareToSina(function(){
                              },function(err){callback('nothing');},{
                              title:"shareToSina",
                              image:"http://wenwen.soso.com/p/20100523/20100523132709-1324513958.jpg",
                              link:"http://v.youku.com/v_show/id_XNTUxNDY1NDY4.html"
                              });
        //        window.plugins.share.shareToSina(function(){
        //                             },function(err){callback('nothing');},{
        //                             title:"shareToSina",
        //                             image:"http://wenwen.soso.com/p/20100523/20100523132709-1324513958.jpg",
        //                             link:"http://v.youku.com/v_show/id_XNTUxNDY1NDY4.html"
        //                             });
        
        }
        function shareToWeixinFavorite() {
        alert("shareToWeixinFavorite");
        window.plugins.share.shareToWeixinFavorite(function(){
                                                   },function(err){callback('nothing');},{
                                                   title:"shareToSina",
                                                   image:"http://wenwen.soso.com/p/20100523/20100523132709-1324513958.jpg",
                                                   link:"http://v.youku.com/v_show/id_XNTUxNDY1NDY4.html"
                                                   });
        
        }
        function shareToWeixinSession() {
        alert("shareToWeixinSession");
        window.plugins.share.shareToWeixinSession(function(){
                                                  },function(err){callback('nothing');},{
                                                  title:"shareToSina",
                                                  image:"http://wenwen.soso.com/p/20100523/20100523132709-1324513958.jpg",
                                                  link:"http://v.youku.com/v_show/id_XNTUxNDY1NDY4.html"
                                                  });
        
        }
        function shareToWeixinTimeline() {
        alert("shareToWeixinTimeline");
        window.plugins.share.shareToWeixinTimeline(function(){
                                                   },function(err){callback('nothing');},{
                                                   title:"shareToSina",
                                                   image:"http://wenwen.soso.com/p/20100523/20100523132709-1324513958.jpg",
                                                   link:"http://v.youku.com/v_show/id_XNTUxNDY1NDY4.html"
                                                   });
        
        }
        function shareToQQFriends() {
        alert("shareToQQFriends");
        window.plugins.share.shareToQQFriends(function(){
                                              },function(err){callback('nothing');},{
                                              title:"shareToQQFriends",
                                              image:"http://wenwen.soso.com/p/20100523/20100523132709-1324513958.jpg",
                                              link:"http://v.youku.com/v_show/id_XNTUxNDY1NDY4.html"
                                              });
        
        }
        function shareToQQZone() {
        alert("shareToQQZone");
        window.plugins.share.shareToQQZone(function(){
                                           },function(err){callback('nothing');},{
                                           title:"shareToQQZone",
                                           image:"http://wenwen.soso.com/p/20100523/20100523132709-1324513958.jpg",
                                           link:"http://v.youku.com/v_show/id_XNTUxNDY1NDY4.html"
                                           });
        
        }
        function shareToQQFavorites() {
        alert("shareToQQFavorites");
        window.plugins.share.shareToQQFavorites(function(){
                                                },function(err){callback('nothing');},{
                                                title:"shareToQQFavorites",
                                                image:"http://wenwen.soso.com/p/20100523/20100523132709-1324513958.jpg",
                                                link:"http://v.youku.com/v_show/id_XNTUxNDY1NDY4.html"
                                                });
        
        }
        function shareToQQDataline() {
        alert("shareToQQDataline");
        window.plugins.share.shareToQQDataline(function(){
                                               },function(err){callback('nothing');},{
                                               title:"shareToQQDataline",
                                               image:"http://wenwen.soso.com/p/20100523/20100523132709-1324513958.jpg",
                                               link:"http://v.youku.com/v_show/id_XNTUxNDY1NDY4.html"
                                               });
        
        }
        function share() {
        alert("share list");
        window.plugins.share.share(function(){
                                   },function(err){callback('nothing');},{
                                   title:"shareToSina",
                                   image:"http://wenwen.soso.com/p/20100523/20100523132709-1324513958.jpg",
                                   link:"http://v.youku.com/v_show/id_XNTUxNDY1NDY4.html"
                                   });
        
        }
        
        document.getElementById("shareToSina").addEventListener("click",shareToSina,false);
        document.getElementById("shareToWeixinFavorite").addEventListener("click",shareToWeixinFavorite,false);
        document.getElementById("shareToWeixinSession").addEventListener("click",shareToWeixinSession,false);
        document.getElementById("shareToWeixinTimeline").addEventListener("click",shareToWeixinTimeline,false);
        document.getElementById("shareToQQFriends").addEventListener("click",shareToQQFriends,false);
        document.getElementById("shareToQQZone").addEventListener("click",shareToQQZone,false);
        document.getElementById("shareToQQFavorites").addEventListener("click",shareToQQFavorites,false);
        document.getElementById("shareToQQDataline").addEventListener("click",shareToQQDataline,false);
        document.getElementById("share").addEventListener("click",share,false);
        
        }
        })